package com.example.movephone.Fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.movephone.R;

public class HomeFragment extends Fragment{
    private TextView tv;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.from(getActivity()).inflate(R.layout.activity_homefragment,container,false);
        tv=view.findViewById(R.id.fragment_tv);
        tv.setText("我是消息");
        return view;
    }


}
